<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<script type="text/javascript" src="<?php echo $GLOBALS['C']['imgdir'];?>/public/admin/js/jquery.min.js"></script>
<link type="text/css" rel="stylesheet" href="/public/admin/css/H-ui.css"/>
<link type="text/css" rel="stylesheet" href="/public/admin/css/H-ui.admin.css"/>
<link type="text/css" rel="stylesheet" href="/public/admin/font/font-awesome.min.css"/>
<script type="text/javascript" src="/public/admin/laydate/laydate.js"></script>
<title>资金记录</title>
</head>
<body>
<nav class="Hui-breadcrumb"><i class="icon-home"></i> 首页 <span class="c-gray en">&gt;</span>客户流水<span class="c-gray en">&gt;</span>资金细账<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="icon-refresh"></i></a></nav>
<div class="pd-20">
  <div class="text-c">
  <form action="/<?php echo $GLOBALS['C']['RKN']?>" method="get">
        <input type="hidden" name="G" value="admin/dlkhxz"/>
        <input type="hidden" name="i" value="<?php echo $_GET['i'];?>"/>
        
        <select  name='st' id="ops"  style="width:150px;" class="input-text" >
            <option value="0">资金作用</option>
            <?php foreach ($GLOBALS['C']['LX'] as $k=>$v):?>
                <option value="<?php echo $k;?>"><?php echo $v;?></option>
            <?php endforeach;?>
        </select>

        <input type="text" name="s1" id="" placeholder="开始时间" value="<?php echo $_GET['s1']?$_GET['s1']:'';?>" style="width:150px" class="input-text" class="laydate-icon" onclick="laydate()" > -
        <input type="text" name="s2" id="" placeholder="结束时间" value="<?php echo $_GET['s2'];?>" style="width:150px" class="input-text" class="laydate-icon" onclick="laydate()"> 
        <button name="" id="" class="btn btn-success" type="submit"><i class="icon-search"></i> 搜信息</button>
    </form>
  </div>
  
<div class="cl pd-5 bg-1 bk-gray mt-20">
   <span class="l">
   
  
  </span> <span class="r">共有数据：<strong><?php echo $count;?></strong> 条</span></div>
  
  <table class="table table-border table-bordered table-bg table-hover table-sort">
    <thead>
      <tr class="text-c">
        <th >ID</th>

        <th >资金作用</th>
        <th >操作资金</th>
        <th >账户余额</th>
        <th >备注</th>
        <th >时间</th>
      </tr>
    </thead>
    <tbody>
      <?php  foreach ($arr as $key =>$value) {?>
      <tr class="text-c">
            <td><?php echo $value['ID'];?></td>
            <td><?php echo $value['status'];?></td>
            <?php echo $value['type']==1?'<td style=color:green> +':'<td style=color:red>-';?>  ￥ <?php echo $value['money'];?></td>
            <td style="color:red">￥ <?php echo $value['new_money'];?></td>
            <td><?php echo $value['remark'];?></td>
            <td><?php echo date('Y-m-d H:i:s',$value['gtime']);?></td>
        </tr>
      <?php }?>
    </tbody>
    
    
    
  </table>
  <style>
    .vsa{
    	display: block;
    	width: 40px;
    	height: 40px;
    	border-radius:20px;
    	background-color: green;
    	color: white;
    	float: left;
    	margin-right: 5px;
    	font-size:18px;
    	line-height: 40px;
    }
  
  </style>
  <div id="pageNav" class="pageNav"></div>

</div>


    <style>
                .pageNav{float:none;clear:both;font-size:0px;font-family:Arial,Helvetica,sans-serif;padding:18px 0px;text-align:center}
                .pageNav span,.pageNav a,.pageNav b{font-size:14px;overflow:hidden;padding:7px 12px}
                .pageNav a{cursor:pointer;background-color: #dfdfdf;color: #000;border:1px solid #ccc;}
                .pageNav b{color:#000}
                .pageNav .mor{padding:3px;font-weight:bold}
		         .chosk{background-color:#ff2b4f !important; color:white !important;}
		</style>
		
		
		<script type="text/javascript">
		
		function setnav(p,pa,url){
			var str='';
			var navup=p-1;
			var navdp=p+1;
			if(p!=1){str+='<a href='+url+'&p='+navup +'><</a>';}
			else{
				str+='<a><</a>';
			}
			//计算最后一页条码
			var i=Math.floor((p-1)/10)*10+1;
			var lastpage=(i-1)+10<pa?(i-1)+10:pa;
			for (i;i<=lastpage;i++){
				if(i==p){str+='<a href='+url+'&p='+i+' class=chosk >'+i+'</a>';}else{str+='<a href='+url+'&p='+i+' >'+i+'</a>';}
			}
			if((i-1)!=pa){
				str+='<a>...</a>';
				str+='<a href='+url+'&p='+pa+' >'+pa+'</a>';
			}
			
			if(p+1<=pa){str+='<a href='+url+'&p='+navdp+' >></a>';}else{
				str+='<a>></a>';
			}
			$('#pageNav').html(str);
		}
		</script>
      
<!--nav 当前页 总页数 url  -->
<script> setnav(<?php echo $_GET['p']?$_GET['p']:1;?>,<?php echo ceil($count/10);?>,
'<?php 
$url= '/?G=admin/dlkhxz';
if($_GET['s1']){$url.="&s1={$_GET['s1']}";}
if($_GET['s2']){$url.="&s2={$_GET['s2']}";}

if($_GET['un']){$url.="&un={$_GET['un']}";}
if($_GET['tp']){$url.="&tp={$_GET['tp']}";}
if($_GET['st']){$url.="&st={$_GET['st']}";}
if($_GET['rk']){$url.="&rk={$_GET['rk']}";}

echo $url;
?>');</script>
<script type="text/javascript">
$(function(){
    var ls='<?php echo $_GET['tp'];?>';
    var st='<?php echo $_GET['st'];?>';
    $("#oks option").eq(ls).attr('selected','selected');
    $("#ops option").eq(st).attr('selected','selected');
});
</script>
</body>
</html>